package com.fz.entity.member;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fh
 * @since 2021-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dr_member")
@ApiModel(value="Member对象", description="")
public class Member extends Model<Member> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    @ApiModelProperty(value = "用户昵称")
    private String username;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "用户手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "app的openid")
    private String appOpenId;

    @ApiModelProperty(value = "小程序openid")
    private String appletOpenId;

    @ApiModelProperty(value = "union_id")
    private String unionId;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "性别 0 男  1女")
    private String sex;

    @ApiModelProperty(value = "出生年月")
    private String birthday;

    @ApiModelProperty(value = "身份证号")
    private String idCardNo;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "身份证正面照")
    private String frontImgUrl;

    @ApiModelProperty(value = "身份证反面照")
    private String backImgUrl;

    @ApiModelProperty(value = "注册来源")
    private String regFrom;

    @ApiModelProperty(value = "注册IP")
    private String regIp;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime regDate;

    @ApiModelProperty(value = "注册渠道")
    private String toFrom;

    @ApiModelProperty(value = "0 启用 1禁用")
    private Integer status;

    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "最后登录IP")
    private String lastLoginIp;


    @Override
    protected Serializable pkVal() {
        return this.uid;
    }

}
